<?php

namespace App\Http\Resources;

use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;

class RoomResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @return array<string, mixed>
     */
    public function toArray(Request $request): array
    {
        return [
            'id' => $this->id,
            'room_id' => $this->room_id,
            'title' => $this->title,
            'description' => $this->description,
            'type' => $this->type,
            'creator_id' => $this->creator_id,
            'menu_source' => $this->menu_source,
            'menu_template_id' => $this->menu_template_id,
            'settings' => $this->settings,
            'expires_at' => $this->expires_at,
            'status' => $this->status,
            'max_participants' => $this->max_participants,
            'current_round' => $this->current_round,
            'total_orders' => $this->total_orders,
            'last_activity_at' => $this->last_activity_at,
            'created_at' => $this->created_at,
            'updated_at' => $this->updated_at,
        ];
    }
}